home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-07-12 | 688 b | 22 lines | [TEXT/GEOL] |
- Item 5574775 29-June-89 16:15
-
- From: ROSENSTEIN1 Rosenstein, Larry
-
- To: PASCOE1 Pascoe, Geoff
-
- cc: MACAPP.TECH$ MACAPP Tech
-
- Sub: re C++ Reference Counting
-
- Geoff,
-
- In C++ you can do reference counting by defining a class TFooPtr, and
- overloading the assignment, and dereferencing operations. Provided everyone
- else uses TFooPtr objects instead of *TFoo, the reference counting will work.
- (There are still some ways to break the system, but it is realtively easy to
- watch out for those.) You also need to define a separate pointer class for
- each object class.
-
- Larry
-
-